package topo.action;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import topo.MainFrame;
import topo.dialog.NodeAddDialog;
import topo.utils.DialogTools;

public class NodeAddAction extends AbstractAction {
    public NodeAddAction() {
        super("添加SNMP设备");
    }

    public void actionPerformed(ActionEvent e) {
        NodeAddDialog dialog = new NodeAddDialog(MainFrame.frame);
        dialog.myInit();
        DialogTools.dialogPack(MainFrame.frame, dialog);
    }
}